<html>
<body>
<?php
include_once('simple_html_dom.php');

echo "Hello World";
?>
<br/>
You said:
<?php echo $_GET["pg"]; ?>
<br/>
<?php
//$file=fopen("index.html","r");
$html = file_get_html($_GET["pg"])->find("body",0);

foreach($html->find('a') as $element)
        if (strripos($element->href,".html"))
       
       if (!strripos($element->href,"://"))
       
       $element->href='?pg=' . $element->href;

?>

<?php echo $html; ?>
</body>
</html>